Happy moments are full of our daily lives, and today we have a chance to dive into a handy dataset that can help shed some light on the fundamentals of happiness.As for me, I am wondering people under different age will have differnet happy moments or not. So I decide to analyze the happymoments of different age groups. I separate the data into four age groups.

First group is people whose age is less an 25 years old. They represent young people such as students.

Second group is people who are between 25 to 40 years old.They represent people who have been working less for 20 years.

Third group is people with age between 40 to 60 years old. Those people have been working for a long time and represent the middle—aged.

Fourth group is people whose age is above 60 years old, they represent the elderly.

Part 1: How about their happiness in different age groups?

In order to get some basic characteristics of happymoments from these four groups, the word count and word cloud would be analyzed.

Word Count

Age below 25 Age between 25 to 40 Age between 40 to 60 Age above 60

Word Cloud

Age below 25 Age between 25 to 40 Age between 40 to 65 Age above 60

SUMMARY1:

We have some interesting moments happened. People experience or focus on different things when they are under different age period. As for young people who study at school, they think friend, family,watch TV,play games, go to events, hang out with girlfriend/boyfriend or go to school/college can make them happy.

When people graduate from school,start getting a job, and many of them get married. They think friend,family, watch TV, play, son/daughter, husband/wife, and job can make them happy.

When people works for a long time and enter middle age, they feel that family, friend, son/daughter, wife/husband,watch TV, or have a dinner can make them happy.

After they retired, family, friend, son/daughter, wife/husband, grandson/granddaughter, dog,watch TV, visit or call someone make them happy most often.

Part2: Do people have same happy moments?

In this part, I apply word frequences to analyze, and using a correlation test to quantify how similar and different these sets of word frequencies, how correlated are the word frequencies.

First Round: Student VS Elderly

Correlation test

## 
##  Pearson's product-moment correlation
## 
## data:  proportion and Above 60
## t = 70.652, df = 2605, p-value < 2.2e-16
## alternative hypothesis: true correlation is not equal to 0
## 95 percent confidence interval:
##  0.7970228 0.8233768
## sample estimates:
##       cor 
## 0.8106099

Second Round: Work People VS Retired People

Here I define “work people” with age from 25 years old to 60 years old. Correlation test

## 
##  Pearson's product-moment correlation
## 
## data:  proportion and Above 60
## t = 114.52, df = 2908, p-value < 2.2e-16
## alternative hypothesis: true correlation is not equal to 0
## 95 percent confidence interval:
##  0.8978976 0.9111009
## sample estimates:
##       cor 
## 0.9047163
## 
##  Pearson's product-moment correlation
## 
## data:  proportion and Above 60
## t = 149.99, df = 2615, p-value < 2.2e-16
## alternative hypothesis: true correlation is not equal to 0
## 95 percent confidence interval:
##  0.9423608 0.9503515
## sample estimates:
##       cor 
## 0.9465011

Third Round: Student VS Work People

Correlation test

## 
##  Pearson's product-moment correlation
## 
## data:  proportion and Below 25
## t = 268.73, df = 6622, p-value < 2.2e-16
## alternative hypothesis: true correlation is not equal to 0
## 95 percent confidence interval:
##  0.9550105 0.9590583
## sample estimates:
##      cor 
## 0.957081
## 
##  Pearson's product-moment correlation
## 
## data:  proportion and Below 25
## t = 122.06, df = 4765, p-value < 2.2e-16
## alternative hypothesis: true correlation is not equal to 0
## 95 percent confidence interval:
##  0.8633935 0.8771603
## sample estimates:
##      cor 
## 0.870447

Fourth Round: Freshman Worker VS Senior Worker

Here I define freshman workers such as people who get into work less then 20 years, and senior workers have long working time, normally longer than 20 years.

Correlation test

## 
##  Pearson's product-moment correlation
## 
## data:  proportion and Between 40 to 60
## t = 261.38, df = 5758, p-value < 2.2e-16
## alternative hypothesis: true correlation is not equal to 0
## 95 percent confidence interval:
##  0.9582904 0.9623077
## sample estimates:
##       cor 
## 0.9603489

SUMMARY2:

We make a camparison between different age groups to figure out wheater they have same happy moments or not.

First round,I am interested in comparing people under 25 years old with people whose age is above 60 years old.They have the greatest age difference, and have the lowest correlation. From the analysis, we can see that they do not have many common happy moments besides family. Lunch, daughter, neighbor, garden/yard, golf, granddaughter can make the elderly happy, but young students think that game, college/class, girlfriend/boyfriend make them happy.

Second round, we can see that no matter work or not, they both feel that daughter,call someone ,buy something can make them happy.Only one thing is different, that is grandchild makes people whose age above 60 years old happy.

Third round, both young student and work people think birthday makes them happy.But work people also feel that son/daughter or even grandchildren make them happy.

Fourth round, freshman worker and senior worker have many similar happy moments and they have the highest correlation.

Overall,during different age periods, people have different things to feel happy.If age difference is smaller,they have more similar happy moments because the correlation is larger; However there are two things that are important for every age stage, FRIEND and FAMILY/HOME; They make people happy no matter who you are, and no matter how old you are.

Part3: We think that happymoments should all have positive attitude, is it true?

Sentiment analysis weighs the emotional intensity of text and I measure the sentiment of happy moments to see how their intensities vary from different age stage.

##    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
## -3.2000  0.2500  0.8000  0.9846  1.5000 22.4000
##    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
## -5.4000  0.2500  0.8000  0.9838  1.5000 22.7000
##    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
## -3.8000  0.2500  0.8000  0.9719  1.5000 17.1500
##    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
## -2.5000  0.2500  0.8000  0.9896  1.5000 20.5500

SUMMARY3:

Before doing this sentiment analysis, I am confident that they all should be positive since it is the data about happy moments.However, the result surprised me.

Exactly, overall the moments are definitely positive and the 25th, 50th, and 75th percentiles across age groups are virtually identical. But the bottom quartile does have negative sentiment. I guess the reason is that some happy things may poetically arise from discomfort things.